package com.rs.game.player.dialogues;

public class ItemDialogue extends Dialogue {
	
	int item;
	String text;

	@Override
	public void start() {
		item = (int) parameters[0];
		text = (String) parameters[1];
		player.getInterfaceManager().sendChatBoxInterface(1189);
		player.getPackets().sendIComponentText(1189, 4, text);
		player.getPackets().sendItemOnIComponent(1189, 1, item, 1);
	}

	@Override
	public void run(int interfaceId, int componentId) {
		end();
	}

	@Override
	public void finish() {

	}
}